<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<body>
<table>
    <thead>
    <tr>
        <td>username</td>
        <td>password</td>
        <td>realname</td>
    </tr>
    </thead>
    <tbody>
    <tr th:each="userinfo : ${userinfos}">
        <td th:text="${userinfo.username}">name</td>
        <td th:text="${userinfo.password}">age</td>
        <td th:text="${userinfo.realname}">sex</td>
    </tr>
    </tbody>
</table>
</body>
</html>